package com.placovu.athenaeum.entity

class Content {
	String name
	static hasMany = [authors:Scholar,translators:Scholar, categories:Category]
	String summary
	String source
	Language language
	Date dateCreated
	Date lastUpdated
	int totalVote;
	double totalScore;
	double editorScore;
	
	static constraints = {
		name(blank:false)
		source(size:0..65535)
		summary(size:0..65535)
    }
	
	static mapping = {
		tablePerSubclass true		
	}
	
	String toString(){
		return name
	}
}
